package com.ky.pro.java.sharding.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单支付信息表
 * </p>
 *
 * @author Kevin Dummy
 * @since 2021-12-18
 */
@Getter
@Setter
@TableName("t_payment")
@ApiModel(value = "Payment对象", description = "订单支付信息表")
public class Payment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单支付信息ID")
    private Long id;

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("支付渠道类型, 1 - 支付宝，2 - 微信， 3 - 银联")
    private Integer payMethodId;

    @ApiModelProperty("支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty("支付状态, 0 - 支付中，1 - 支付完成，2 - 退款中，3 - 退款完成")
    private Integer payStatus;

    @ApiModelProperty("内部流水号，系统内统一")
    private String paySerialNoInternal;

    @ApiModelProperty("外部流水号，支付渠道提供的流水号")
    private String paySerialNoExtern;

    @ApiModelProperty("删除标志")
    private Boolean delStatus;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("版本号")
    private Integer version;


}
